package com.cloud.job.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.api.domain.algorithm.VehiclePoint;
import com.cloud.api.domain.job.VehicleMessageDaily;
import com.cloud.api.domain.job.VehicleRunningData;
import com.cloud.api.domain.report.VehicleOffline;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author 杨斌
 * 2024-03-1/3/2024
 */
@DS("doris")
public interface VehicleMessageDailyMapper extends BaseMapper<VehicleMessageDaily> {

    List<VehicleMessageDaily> getVehicleMessage();

    List<VehicleRunningData> getVehicleRunningData();

    List<VehicleOffline> selectOfflineList(@Param("dataSource") String dataSource);

    List<VehiclePoint> getAggVehicleMessage(@Param("parkTime") Integer parkTime, @Param("dataSource") String dataSource);
}
